package com.boot.auth.api;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginApi {
    @GetMapping("/book/classical")
    public JSONObject getBook() {
        JSONObject bookJson = new JSONObject();
        bookJson.put("1", "西游记");
        bookJson.put("2", "水浒传");
        bookJson.put("3", "红楼梦");
        bookJson.put("4", "三国演义");
        return bookJson;
    }
}
